10 TEXT : HOME :G$ = CHR$(7): PRINT "THIS PROGRAM WILL CALCULATE THE NUMBER OF DAYS BETWEEN TWO DATES (1801-2099).": PRINT : ONERR GOTO 63900
20 FOR T = 1 TO 2:V = 3 +8 *(T = 2): VTAB V: GOSUB 140: INVERSE : PRINT " ENTER DATE #";T;" ": NORMAL : GOSUB 100: NEXT : VTAB V +8: GOSUB 140
90 DD = ABS(DD(2) -DD(1)): VTAB 20: HTAB 1: NORMAL : PRINT "TIME SPAN: " INT((100 *(DD +.5))/365.244966)/100" YEARS, OR "DD" DAYS.": VTAB 21: GOSUB 140
95 NORMAL : VTAB 23: HTAB 1: CALL -958: PRINT "HIT <RETURN> TO TRY AGAIN:": PRINT " OR <Q> TO QUIT.";: VTAB 23: HTAB 27: GET A$: PRINT A$: IF A$ = CHR$(13) THEN RUN
96 IF A$ = "Q" THEN 63900
99 GOTO 95:<CTRL-M><CTRL-M><CTRL-M><CTRL-M>
100 RESTORE : FOR I = 1 TO 12: READ MO$,LE$: VTAB I +18 -6 *(I >6): HTAB 1 +12 *(I >6) -(I >9): PRINT I;" ";MO$;: NEXT
102 VTAB 3 +V: HTAB 1: CALL -868: PRINT "__<-MONTH (1-12)";: HTAB 1: INPUT "";MO$:MO(T) = VAL(MO$): IF MO(T) <1 OR MO(T) >12 THEN PRINT G$;: GOTO 100
105 RESTORE : FOR I = 1 TO MO(T): READ MO$,LE$: NEXT : VTAB 3 +V: HTAB 1: CALL -958: PRINT MO$;:HT = POS(0) +2: IF MO(T) = 2 THEN LE$ = "29": DATA JANUARY,31,FEBRUARY,28,MARCH,31,APRIL,30,MAY,31,JUNE,30,JULY,31,AUGUST,31,SEPTEMBER,30,OCTOBER,31,NOVEMBER,30,DECEMBER,31
110 VTAB 3 +V: HTAB HT: CALL -868: PRINT "__<-DAY (1-";LE$;")";: HTAB HT: INPUT "";DA$:DA(T) = VAL(DA$): IF DA(T) <1 OR DA(T) > VAL(LE$) THEN PRINT G$;: GOTO 100